import { userDataStore } from '@/store/useUserDataStore';
import showMessage from '@/utils/showMessage';
import router from '@/router';
export function LoginOut(){
    let userData = userDataStore()
    userData.isOnline = false
    userData.loginMode = ''
    localStorage.removeItem("SLuserData")
    router.push("/login")
    showMessage("退出登录成功","success")
}